import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/widgets.dart' hide Action;  //注意1
import 'action.dart';
import 'state.dart';
import 'package:app_happy_flutter/code/Base/C/app_route.dart';
Effect<OrganizationState> buildEffect() {
  return combineEffects(<Object, Effect<OrganizationState>>{
    OrganizationAction.action: _onAction,
    OrganizationAction.openGrid: _onOpenGrid,//接收openGrid事件
  });
}

void _onAction(Action action, Context<OrganizationState> ctx) {
}
//处理openGrid事件
void _onOpenGrid(Action action, Context<OrganizationState> ctx) {
  Navigator.of(ctx.context).pushNamed(RoutePath.todoGridPage, arguments: null);    //注意2
}